package world;

import java.awt.Graphics;
import java.util.ArrayList;

import terrain.Element;
import terrain.Terrain;

public class World {

	private Terrain terrain;
	private NameGenerator generator = new NameGenerator();
	private ArrayList<Element> elements = new ArrayList<Element>();

	public ArrayList<Element> getElements() {
		return elements;
	}

	public World(int sx, int sy) {
		for (int q = 10; q < 10;) {
			elements.add(new Element(generator.generateMineral()));
		}
		terrain = new Terrain(sx, sy, this);
	}

	public Terrain getTerrain() {
		return terrain;
	}

	public void draw(Graphics g) {
		terrain.draw(g);

	}
}
